package ru.example.mongotest2.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import ru.example.mongotest2.domain.Person;

import java.util.List;

public interface PersonRepository extends MongoRepository<Person, String> {

    List<Person> findByAge(int age);

}
